// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
0000: 
thread 'gns1'

27@ = 4.0
21@ = 4.0
:continue
WHILE TRUE
    WAIT 0                                                                       
    0AB4: 31@ = var 205
    0AB4: 29@ = var 203
    if 29@ == true
    then                                                                                                                                          
        if and                                                                                             
            056D:   actor 31@ defined                                                                      
            803B:   not  31@ == $PLAYER_ACTOR // (int)                                                                                                                                                                                                                                                
        then 0665: get_actor 31@ model_to 8@ 
            0AD3: 6@s = format "int1%X" 8@                                          
            005B: 5@ += 21@ // (float)                                                                     
            04C4: store_coords_to 10@ 20@ 23@ from_actor 31@ with_offset 0.0 0.0 1.0                       
            0AB1: call_scm_func @HEALTH_13A 3 10@ 20@ 23@ 4@ 5@                                            
            0342: set_text_draw_centered 1                                                                 
            0349: set_text_draw_font 3                                                                     
            060D: draw_text_shadow 0 rgba 255 255 255 150                                                  
            033F: set_text_draw_letter_size 0.3 0.8                                                        
            0340: set_text_draw_RGBA 255 165 0 255                                                         
            081C: draw_text_outline 1 RGBA 0 0 0 150                                                       
            033E: draw_text_1number 4@ 5@ GXT 6@s // @s = 'short'                                      
            03F0: enable_text_draw 0                                                                       
            005B: 5@ += 27@ // (float)                                                                     
            038E: draw_box_position 4@ 5@ size 53.0 13.0 RGBA 252 0 252 150                                
            038E: draw_box_position 4@ 5@ size 50.0 10.0 RGBA 0 0 0 255                                    
        END
    else break
    end                                                                                                
END

while true
    wait 0
    0AB4: 29@ = var 203 
    IF 29@ == 1
    THEN goto @continue
    END
end             
 
:HEALTH_13A
18@ = 1 
0A9F: 19@ = current_thread_pointer 
0AB1: call_scm_func @HEALTH_1DF 2 19@ 0 14@  
0AB1: call_scm_func @HEALTH_1DF 2 19@ 3 15@  
0AB1: call_scm_func @HEALTH_1DF 2 19@ 6 16@  
0AB1: call_scm_func @HEALTH_1DF 2 19@ 9 17@  
0AB1: call_scm_func @HEALTH_1DF 2 19@ 12 18@  
0AA5: call 7392816 num_params 6 pop 6 18@ 18@ 17@ 16@ 15@ 14@  
0AB1: call_scm_func @HEALTH_24B 2 3@ 4@ 3@ 4@  
0AB2: ret 2 3@ 4@ 

:HEALTH_1DF
if 
   not 0@ == 0 
jf @HEALTH_23C 
1@ *= 4 
0A8E: 2@ = 0@ + 220 // int 
if 
  2@ == 1 
jf @HEALTH_226 
1@ += 10783072 
jump @HEALTH_235 

:HEALTH_226
005A: 1@ += 0@ // (int) 
1@ += 60 

:HEALTH_235
jump @HEALTH_243 

:HEALTH_23C
1@ = 0 

:HEALTH_243
0AB2: ret 1 1@ 

:HEALTH_24B
2@ = 640.0 
0A8D: 4@ = read_memory 12677188 size 4 virtual_protect 0 
0093: 4@ = integer 4@ to_float 
0073: 2@ /= 4@ // (float) 
006B: 0@ *= 2@ // (float) 
3@ = 448.0 
0A8D: 5@ = read_memory 12677192 size 4 virtual_protect 0 
0093: 5@ = integer 5@ to_float 
0073: 3@ /= 5@ // (float) 
006B: 1@ *= 3@ // (float) 
0AB2: ret 2 0@ 1@ 
























     




